#define _CRT_SECURE_NO_WARNINGS 1

#include "queue.h"

int main() {
	SqQueue Q;
	InitQueue(&Q);
	EnQueue(&Q, 1);
	EnQueue(&Q, 2);
	EnQueue(&Q, 3);
	EnQueue(&Q, 4);
	EnQueue(&Q, 5);
	EnQueue(&Q, 6);

	for (int i = 0; i < QueueLength(Q); i++) {
		printf("%d", Q.base[(Q.front + i) % MAXQSIZE]);
	}
	return 0;
}